package com.niiwoo.civet.mobile.vo.response.user;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

@Getter
@Setter
@ApiModel(description = "用户回款计划")
public class ProjectInvestorPlanResponseVO {

    @ApiModelProperty(value = "回款记录",required = true)
    private List<ReceivableRecords> receivableRecords = new ArrayList<>();;

    @ApiModelProperty(value = "利息总计",required = true)
    private BigDecimal interestTotal;

    @ApiModelProperty(value = "预计回款总金额",required = true)
    private BigDecimal  receivableTotalAmount;

    @ApiModelProperty(value = "已投资显示：投资金额/未投资显示：10000举例",required = true)
    private BigDecimal  investAmount;

    @ApiModelProperty(value = "满标日期",required = true)
    private String fullSuccessTime;

    @ApiModelProperty(value = "标的状态(0.未满标 1.已满标)",required = true)
    private Byte projectState;

    @ApiModelProperty(value = "用户是否投资(0.未投此标 1.已投此标 )",required = true)
    private Byte isInvest;

    @Setter
    @Getter
    static public class ReceivableRecords{

        @ApiModelProperty(value = "回款日期",required = true)
        private String receiveDate;

        @ApiModelProperty(value = "总金额",required = true)
        private BigDecimal  totalAmount;

        @ApiModelProperty(value = "应收本金",required = true)
        private BigDecimal  receivableAmount;

        @ApiModelProperty(value = "应收利息",required = true)
        private BigDecimal  receivableRate;


    }

}